package com.cloud.model;

import java.util.Date;
import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
public class MetadataTable implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3728229777159531557L;
	@Id
	private String id;
	private String name;
	private String dbid;
	private String tabledirid;
	private String tablename;
	private String code;
	private String secure;
	private String tabletype = "1"; // 1:Table : 2:SQL
	private String datasql;
	private int startindex = 0;
	private Date updatetime;
	private long updatetimenumber;

	private String tabtype; // project
	private String pid; // product
	private String secmenuid; // Sec Menu
	private String reportid; // report
	private boolean timeline;
	private String eventname;

	private int tbversion; // table task version

	// private SecureConfigure secureconfigure;
	private Date lastupdate;
	private String taskname;
	private String taskplan; // 改变用处， 改为 left
	private String taskstatus; // 改变用处 ， 改为 top
	private String tasktype; // R3 CRM修改用处，修改为 二级菜单下的主表
	private Date createtime;
	private String configure; // 改变用处，改为 链接对象 一
	private String secureconf; // 改变用处，改为 链接对象 二
	private String userid;
	private String groupid; // 如果为结算过后的表，储存模型名称
	private String previewtemplet; // 修改用处，改变为 SQL或 Table 的 参数
	private String listblocktemplet;
	private String orgi;
	private String creater;
	private String creatername;
	private boolean userpage = false;
	private boolean fromdb;
	private boolean workflow;
	private List<TableProperties> tableproperty;

}
